package com.zsrt.java.day20161223.xww.demo07;

import java.util.Scanner;

import org.junit.Test;

public class Dial {

	@Test
	public void test07(){
		Scanner sc=new Scanner(System.in);
		System.out.println("请输入要的拨打的业务号码：");
		int num=sc.nextInt();
		sc.close();
		switch (num) {
		case 1:System.out.println("拨爸爸的号");break;
		case 2:System.out.println("拨妈妈的号");break;
		case 3:System.out.println("拨爷爷的号");break;
		case 4:System.out.println("拨奶奶的号");break;
		default:System.out.println("其他业务");break;
		}
	}
}
